<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>孟老师QQ-574549426-暗号：JAVA</title>
    <script src="vue.js" type="text/javascript"></script>
</head>
<body>
<div id="app">
    <form>
        姓名：<input name="name" v-model="user.name"><br/>
        性别：<input name="gender" value="男" type="radio" v-model="user.gender">男
        <input name="gender" value="女" type="radio"  v-model="user.gender">女<br/>
        专业：<select name="major" v-model="user.major">
                <option value="">请选择</option>
                <option value="1">JAVA</option>
                <option value="2">千锋</option>
                <option value="3">最好</option>
              </select>
    </form>
</div>
<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            user:{
                name:'孟老师',
                gender:'女',
                major:2
            }
        }
    })
</script>
</body>
</html>